package cn.stylefeng.guns.dao.entity;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wholesale_sales_record")
@ApiModel(value = "批发销售记录", description = "")
public class WholesaleSalesRecord extends BusinessBaseEntity {
    @ApiModelProperty(value = "主键")
    @TableId(value = "wholesale_sales_record_id", type = IdType.ASSIGN_ID)
    private String wholesaleSalesRecordId;
    @ApiModelProperty(value = "外键id")
    private String outId;
    @ApiModelProperty(value = "总计库存数量")
    private Integer totalNum;
    @ApiModelProperty(value = "使用掉的库存数量")
    private Integer usedNum;
    @ApiModelProperty(value = "批次号")
    private String batchNo;
    @ApiModelProperty(value = "库存计划消耗完毕时间")
    private Long endTime;
    @ApiModelProperty(value = "商品code")
    private String proCode;

    @ApiModelProperty(value = "删除标记：Y-已删除，N-未删除")
    @TableField(
            value = "del_flag",
            fill = FieldFill.INSERT
    )
    @ChineseDescription("删除标记（Y-已删除，N-未删除）")
    @TableLogic(value = "N", delval = "Y")
    private String delFlag;

}
